package com.goods.common.model.business;

import com.goods.common.annotation.CreateTime;
import com.goods.common.annotation.UpdateTime;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


//@Excel("productCategory")
@Data
@Table(name = "biz_product_category")
public class ProductCategory {

    @Id
    @ExcelField(value = "编号", width = 50)
    private Long id;

    @ExcelField(value = "分类名称", width = 150)
    private String name;

    @ExcelField(value = "备注", width = 150)
    private String remark;

    @ExcelField(value = "排序", width = 150)
    private Integer sort;

    @ExcelField(value = "创建时间", width = 150)
    @CreateTime
    private Date createTime;

    @ExcelField(value = "修改时间", width = 150)
    @UpdateTime
    private Date modifiedTime;

    /** 父级分类id*/
    @ExcelField(value = "父Id", width = 150)
    private Long pid;

}
